.class public Lcom/xingbook/ui/q;
.super Landroid/view/ViewGroup;


# instance fields
.field a:Landroid/content/Context;

.field b:Landroid/view/View$OnClickListener;

.field c:Z

.field d:Lcom/xingbook/ui/ad;

.field e:Lcom/xingbook/ui/ad;

.field f:Lcom/xingbook/ui/ad;

.field g:Lcom/xingbook/ui/ad;

.field private h:Landroid/view/animation/Animation;

.field private i:Landroid/view/animation/Animation;

.field private j:F

.field private k:I

.field private l:I


# direct methods
.method public constructor <init>(Landroid/app/Activity;)V
    .locals 12

    const-wide/16 v10, 0x12c

    const/4 v1, 0x0

    const/high16 v9, 0x4396

    const/4 v2, 0x0

    invoke-virtual {p1}, Landroid/app/Activity;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-direct {p0, v0}, Landroid/view/ViewGroup;-><init>(Landroid/content/Context;)V

    new-instance v0, Lcom/xingbook/ui/r;

    invoke-direct {v0, p0}, Lcom/xingbook/ui/r;-><init>(Lcom/xingbook/ui/q;)V

    iput-object v0, p0, Lcom/xingbook/ui/q;->b:Landroid/view/View$OnClickListener;

    iput-boolean v1, p0, Lcom/xingbook/ui/q;->c:Z

    iput-object p1, p0, Lcom/xingbook/ui/q;->a:Landroid/content/Context;

    invoke-static {p1}, Lcom/xingbook/c/n;->f(Landroid/app/Activity;)F

    move-result v0

    iput v0, p0, Lcom/xingbook/ui/q;->j:F

    invoke-static {p1}, Lcom/xingbook/c/n;->c(Landroid/app/Activity;)I

    move-result v0

    iput v0, p0, Lcom/xingbook/ui/q;->k:I

    invoke-static {p1}, Lcom/xingbook/c/n;->d(Landroid/app/Activity;)I

    move-result v0

    iput v0, p0, Lcom/xingbook/ui/q;->l:I

    invoke-direct {p0}, Lcom/xingbook/ui/q;->a()V

    new-instance v0, Landroid/view/animation/TranslateAnimation;

    iget v3, p0, Lcom/xingbook/ui/q;->j:F

    mul-float v6, v9, v3

    move v3, v1

    move v4, v2

    move v5, v1

    move v7, v1

    move v8, v2

    invoke-direct/range {v0 .. v8}, Landroid/view/animation/TranslateAnimation;-><init>(IFIFIFIF)V

    iput-object v0, p0, Lcom/xingbook/ui/q;->h:Landroid/view/animation/Animation;

    iget-object v0, p0, Lcom/xingbook/ui/q;->h:Landroid/view/animation/Animation;

    invoke-virtual {v0, v10, v11}, Landroid/view/animation/Animation;->setDuration(J)V

    new-instance v0, Landroid/view/animation/TranslateAnimation;

    iget v3, p0, Lcom/xingbook/ui/q;->j:F

    mul-float v8, v9, v3

    move v3, v1

    move v4, v2

    move v5, v1

    move v6, v2

    move v7, v1

    invoke-direct/range {v0 .. v8}, Landroid/view/animation/TranslateAnimation;-><init>(IFIFIFIF)V

    iput-object v0, p0, Lcom/xingbook/ui/q;->i:Landroid/view/animation/Animation;

    iget-object v0, p0, Lcom/xingbook/ui/q;->i:Landroid/view/animation/Animation;

    invoke-virtual {v0, v10, v11}, Landroid/view/animation/Animation;->setDuration(J)V

    return-void
.end method

.method private a()V
    .locals 13

    const/4 v12, -0x1

    const v11, -0xff9934

    const/high16 v2, 0x41a0

    const/4 v4, 0x1

    const/4 v3, 0x0

    const/high16 v0, 0x42c8

    iget v1, p0, Lcom/xingbook/ui/q;->j:F

    mul-float/2addr v0, v1

    invoke-static {v0}, Ljava/lang/Math;->round(F)I

    move-result v8

    iget v0, p0, Lcom/xingbook/ui/q;->j:F

    mul-float/2addr v0, v2

    invoke-static {v0}, Ljava/lang/Math;->round(F)I

    move-result v9

    iget v0, p0, Lcom/xingbook/ui/q;->j:F

    mul-float/2addr v0, v2

    invoke-static {v0}, Ljava/lang/Math;->round(F)I

    move-result v10

    const/high16 v0, 0x4396

    iget v1, p0, Lcom/xingbook/ui/q;->j:F

    mul-float/2addr v0, v1

    invoke-static {v0}, Ljava/lang/Math;->round(F)I

    move-result v7

    new-instance v0, Lcom/xingbook/ui/ad;

    iget-object v1, p0, Lcom/xingbook/ui/q;->a:Landroid/content/Context;

    invoke-direct {v0, v1}, Lcom/xingbook/ui/ad;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/xingbook/ui/q;->e:Lcom/xingbook/ui/ad;

    iget-object v0, p0, Lcom/xingbook/ui/q;->e:Lcom/xingbook/ui/ad;

    const/16 v1, 0xa

    invoke-virtual {v0, v1}, Lcom/xingbook/ui/ad;->setId(I)V

    iget-object v0, p0, Lcom/xingbook/ui/q;->e:Lcom/xingbook/ui/ad;

    iget-object v1, p0, Lcom/xingbook/ui/q;->b:Landroid/view/View$OnClickListener;

    invoke-virtual {v0, v1}, Lcom/xingbook/ui/ad;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/xingbook/ui/q;->e:Lcom/xingbook/ui/ad;

    iget v1, p0, Lcom/xingbook/ui/q;->k:I

    iget v2, p0, Lcom/xingbook/ui/q;->l:I

    invoke-virtual {v0, v3, v3, v1, v2}, Lcom/xingbook/ui/ad;->layout(IIII)V

    iget-object v0, p0, Lcom/xingbook/ui/q;->e:Lcom/xingbook/ui/ad;

    invoke-virtual {p0, v0}, Lcom/xingbook/ui/q;->addView(Landroid/view/View;)V

    new-instance v0, Lcom/xingbook/ui/ad;

    iget-object v1, p0, Lcom/xingbook/ui/q;->a:Landroid/content/Context;

    invoke-direct {v0, v1}, Lcom/xingbook/ui/ad;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/xingbook/ui/q;->f:Lcom/xingbook/ui/ad;

    iget-object v0, p0, Lcom/xingbook/ui/q;->f:Lcom/xingbook/ui/ad;

    iput-boolean v4, v0, Lcom/xingbook/ui/ad;->y:Z

    iget-object v0, p0, Lcom/xingbook/ui/q;->f:Lcom/xingbook/ui/ad;

    iput v12, v0, Lcom/xingbook/ui/ad;->i:I

    iget-object v0, p0, Lcom/xingbook/ui/q;->f:Lcom/xingbook/ui/ad;

    const v1, -0xcccd

    const/high16 v2, 0x4080

    iget v5, p0, Lcom/xingbook/ui/q;->j:F

    mul-float/2addr v2, v5

    float-to-int v2, v2

    move v5, v3

    move v6, v3

    invoke-virtual/range {v0 .. v6}, Lcom/xingbook/ui/ad;->a(IIIIII)V

    iget-object v0, p0, Lcom/xingbook/ui/q;->f:Lcom/xingbook/ui/ad;

    iget v1, p0, Lcom/xingbook/ui/q;->l:I

    sub-int/2addr v1, v7

    iget v2, p0, Lcom/xingbook/ui/q;->k:I

    iget v5, p0, Lcom/xingbook/ui/q;->l:I

    invoke-virtual {v0, v3, v1, v2, v5}, Lcom/xingbook/ui/ad;->layout(IIII)V

    iget-object v0, p0, Lcom/xingbook/ui/q;->f:Lcom/xingbook/ui/ad;

    invoke-virtual {p0, v0}, Lcom/xingbook/ui/q;->addView(Landroid/view/View;)V

    iget v0, p0, Lcom/xingbook/ui/q;->l:I

    sub-int/2addr v0, v7

    mul-int/lit8 v1, v8, 0x2

    sub-int v1, v7, v1

    sub-int/2addr v1, v10

    div-int/lit8 v1, v1, 0x2

    add-int/2addr v0, v1

    new-instance v1, Lcom/xingbook/ui/ad;

    iget-object v2, p0, Lcom/xingbook/ui/q;->a:Landroid/content/Context;

    invoke-direct {v1, v2}, Lcom/xingbook/ui/ad;-><init>(Landroid/content/Context;)V

    iput-object v1, p0, Lcom/xingbook/ui/q;->d:Lcom/xingbook/ui/ad;

    iget-object v1, p0, Lcom/xingbook/ui/q;->d:Lcom/xingbook/ui/ad;

    iget-object v2, p0, Lcom/xingbook/ui/q;->b:Landroid/view/View$OnClickListener;

    invoke-virtual {v1, v2}, Lcom/xingbook/ui/ad;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v1, p0, Lcom/xingbook/ui/q;->d:Lcom/xingbook/ui/ad;

    const/16 v2, 0xb

    invoke-virtual {v1, v2}, Lcom/xingbook/ui/ad;->setId(I)V

    iget-object v1, p0, Lcom/xingbook/ui/q;->d:Lcom/xingbook/ui/ad;

    const/high16 v2, 0x4120

    iput v2, v1, Lcom/xingbook/ui/ad;->j:F

    iget-object v1, p0, Lcom/xingbook/ui/q;->d:Lcom/xingbook/ui/ad;

    const-string v2, "\u786e\u8ba4"

    iput-object v2, v1, Lcom/xingbook/ui/ad;->a:Ljava/lang/String;

    iget-object v1, p0, Lcom/xingbook/ui/q;->d:Lcom/xingbook/ui/ad;

    const/high16 v2, 0x4238

    iget v5, p0, Lcom/xingbook/ui/q;->j:F

    mul-float/2addr v2, v5

    iput v2, v1, Lcom/xingbook/ui/ad;->c:F

    iget-object v1, p0, Lcom/xingbook/ui/q;->d:Lcom/xingbook/ui/ad;

    iput v12, v1, Lcom/xingbook/ui/ad;->b:I

    iget-object v1, p0, Lcom/xingbook/ui/q;->d:Lcom/xingbook/ui/ad;

    const/4 v2, 0x0

    iput-object v2, v1, Lcom/xingbook/ui/ad;->f:Ljava/lang/String;

    iget-object v1, p0, Lcom/xingbook/ui/q;->d:Lcom/xingbook/ui/ad;

    const/16 v2, 0xcc

    const/16 v5, 0x14

    invoke-static {v2, v3, v5}, Landroid/graphics/Color;->rgb(III)I

    move-result v2

    iput v2, v1, Lcom/xingbook/ui/ad;->i:I

    iget-object v1, p0, Lcom/xingbook/ui/q;->d:Lcom/xingbook/ui/ad;

    const/16 v2, 0x11

    iput v2, v1, Lcom/xingbook/ui/ad;->d:I

    iget-object v2, p0, Lcom/xingbook/ui/q;->d:Lcom/xingbook/ui/ad;

    move v5, v4

    move v6, v4

    move v7, v4

    invoke-virtual/range {v2 .. v7}, Lcom/xingbook/ui/ad;->a(IIIII)V

    iget-object v1, p0, Lcom/xingbook/ui/q;->d:Lcom/xingbook/ui/ad;

    iput v3, v1, Lcom/xingbook/ui/ad;->l:I

    iget-object v1, p0, Lcom/xingbook/ui/q;->d:Lcom/xingbook/ui/ad;

    invoke-virtual {v1, v11}, Lcom/xingbook/ui/ad;->setHilighted(I)V

    iget-object v1, p0, Lcom/xingbook/ui/q;->d:Lcom/xingbook/ui/ad;

    iget v2, p0, Lcom/xingbook/ui/q;->k:I

    sub-int/2addr v2, v9

    add-int v3, v0, v8

    invoke-virtual {v1, v9, v0, v2, v3}, Lcom/xingbook/ui/ad;->layout(IIII)V

    iget-object v0, p0, Lcom/xingbook/ui/q;->d:Lcom/xingbook/ui/ad;

    invoke-virtual {p0, v0}, Lcom/xingbook/ui/q;->addView(Landroid/view/View;)V

    add-int v0, v3, v10

    iget-object v1, p0, Lcom/xingbook/ui/q;->d:Lcom/xingbook/ui/ad;

    invoke-virtual {v1}, Lcom/xingbook/ui/ad;->b()Lcom/xingbook/ui/ad;

    move-result-object v1

    iput-object v1, p0, Lcom/xingbook/ui/q;->g:Lcom/xingbook/ui/ad;

    iget-object v1, p0, Lcom/xingbook/ui/q;->g:Lcom/xingbook/ui/ad;

    iget-object v2, p0, Lcom/xingbook/ui/q;->b:Landroid/view/View$OnClickListener;

    invoke-virtual {v1, v2}, Lcom/xingbook/ui/ad;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v1, p0, Lcom/xingbook/ui/q;->g:Lcom/xingbook/ui/ad;

    const/16 v2, 0xc

    invoke-virtual {v1, v2}, Lcom/xingbook/ui/ad;->setId(I)V

    iget-object v1, p0, Lcom/xingbook/ui/q;->g:Lcom/xingbook/ui/ad;

    const-string v2, "\u53d6\u6d88"

    iput-object v2, v1, Lcom/xingbook/ui/ad;->a:Ljava/lang/String;

    iget-object v1, p0, Lcom/xingbook/ui/q;->g:Lcom/xingbook/ui/ad;

    const v2, -0xcc33cd

    iput v2, v1, Lcom/xingbook/ui/ad;->i:I

    iget-object v1, p0, Lcom/xingbook/ui/q;->d:Lcom/xingbook/ui/ad;

    invoke-virtual {v1, v11}, Lcom/xingbook/ui/ad;->setHilighted(I)V

    iget-object v1, p0, Lcom/xingbook/ui/q;->g:Lcom/xingbook/ui/ad;

    iget v2, p0, Lcom/xingbook/ui/q;->k:I

    sub-int/2addr v2, v9

    add-int v3, v0, v8

    invoke-virtual {v1, v9, v0, v2, v3}, Lcom/xingbook/ui/ad;->layout(IIII)V

    iget-object v0, p0, Lcom/xingbook/ui/q;->g:Lcom/xingbook/ui/ad;

    invoke-virtual {p0, v0}, Lcom/xingbook/ui/q;->addView(Landroid/view/View;)V

    return-void
.end method

.method static synthetic a(Lcom/xingbook/ui/q;Z)V
    .locals 0

    invoke-direct {p0, p1}, Lcom/xingbook/ui/q;->a(Z)V

    return-void
.end method

.method private a(Z)V
    .locals 1

    const/16 v0, 0x8

    invoke-virtual {p0, v0}, Lcom/xingbook/ui/q;->setVisibility(I)V

    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/xingbook/ui/q;->c:Z

    if-eqz p1, :cond_0

    iget-object v0, p0, Lcom/xingbook/ui/q;->i:Landroid/view/animation/Animation;

    invoke-virtual {p0, v0}, Lcom/xingbook/ui/q;->startAnimation(Landroid/view/animation/Animation;)V

    :cond_0
    return-void
.end method


# virtual methods
.method protected onLayout(ZIIII)V
    .locals 0

    return-void
.end method
